#!/bin/bash
# My first shell script

# 打印消息
echo "Hello, Shell Programming!"

# 定义变量
name="World"
echo "Hello, $name!"

# 条件判断
if [ -f "/etc/passwd" ]; then
    echo "/etc/passwd exists."
else
    echo "/etc/passwd does not exist."
fi

# 循环
for i in {1..5}; do
    echo "Count: $i"
done

# 函数
greet() {
    echo "Welcome, $1!"
}
greet "User"


